package com.hqyj.javaSpringBoot.modules.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/common")
public class CommonController {

    /**
     * 127.0.0.1:8080/common/dashboard ---- get
     */
    @GetMapping("/dashboard")
    public String dashboardPage(){
        return "index";
    }

    /**
     * 127.0.0.1:8080/common/403 ---- get
     */
    @GetMapping("/403")
    public String errorPageFor403(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1:8080/common/404 ---- get
     */
    @GetMapping("/404")
    public String errorPageFor404(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1:8080/common/500 ---- get
     */
    @GetMapping("/500")
    public String errorPageFor500(){
        return "indexSimple";
    }

}
